package com.ruoyi.supplier.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 出入库记录业务对象
 *
 * @author ruoyi
 * @date 2023-09-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class StockRecordBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Integer stockRecordId;

    /**
     * 仓库id
     */
    @NotNull(message = "仓库id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer stockId;

    /**
     * sku编号
     */
    @NotNull(message = "sku编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer productSkuId;

    /**
     * 类型（10入库 20出库）
     */
    @NotNull(message = "类型（10入库 20出库）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer shouldNum;

    /**
     * 当前库存数量
     */
    @NotNull(message = "当前库存数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer stockNum;


}
